// To parse this JSON data, do
//
//     final DeviceTypeModel = DeviceTypeModelFromJson(jsonString);

import 'dart:convert';

DeviceTypeModel DeviceTypeModelFromJson(String str) => DeviceTypeModel.fromJson(json.decode(str));

String DeviceTypeModelToJson(DeviceTypeModel data) => json.encode(data.toJson());

class DeviceTypeModel {
  DeviceTypeModel({
    this.id,
    this.name,
    this.model,
    this.usageScenarios,
    this.elementCombination,
    this.status,
    this.ctime,
    this.cuser,
    this.mtime,
    this.muser,
    this.machineType,
    this.machineTypeName,
    this.usageScenariosId,
    this.power,
    this.isHee,
    this.setMeal,
    this.applyChannel,
  });

  int? id;
  String? name;
  String? model;
  String? usageScenarios;
  String? elementCombination;
  int? status;
  int? ctime;
  int? cuser;
  int? mtime;
  int? muser;
  int? machineType;
  String? machineTypeName;
  int? usageScenariosId;
  int? power;
  int? isHee;
  int? setMeal;
  String? applyChannel;

  factory DeviceTypeModel.fromJson(Map<String, dynamic> json) => DeviceTypeModel(
        id: json["id"],
        name: json["name"],
        model: json["model"],
        usageScenarios: json["usageScenarios"],
        elementCombination: json["elementCombination"],
        status: json["status"],
        ctime: json["ctime"],
        cuser: json["cuser"],
        mtime: json["mtime"],
        muser: json["muser"],
        machineType: json["machineType"],
        machineTypeName: json["machineTypeName"],
        usageScenariosId: json["usageScenariosId"],
        power: json["power"],
        isHee: json["isHee"],
        setMeal: json["setMeal"],
        applyChannel: json["applyChannel"],
      );

  Map<String, dynamic> toJson() => {
        "id": id,
        "name": name,
        "model": model,
        "usageScenarios": usageScenarios,
        "elementCombination": elementCombination,
        "status": status,
        "ctime": ctime,
        "cuser": cuser,
        "mtime": mtime,
        "muser": muser,
        "machineType": machineType,
        "machineTypeName": machineTypeName,
        "usageScenariosId": usageScenariosId,
        "power": power,
        "isHee": isHee,
        "setMeal": setMeal,
        "applyChannel": applyChannel,
      };
}
